﻿using System;
using System.Linq;
using System.Text;
using Common.IdCreator;
using SqlSugar;

namespace SqlSugarAndEntity.Entity
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("sys_loginfo")]
    public partial class sys_loginfo:IDisposable
    {
        private bool disposedValue;

        public sys_loginfo()
        {
            this.ID = IDHelper.GetId();

        }
        /// <summary>
        /// Desc:主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true)]
        public decimal ID { get; set; }

        /// <summary>
        /// Desc:请求地址
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string RequestPath { get; set; }

        /// <summary>
        /// Desc:请求方式(get,post,put,delete)
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string RequestMethod { get; set; }

        /// <summary>
        /// Desc:入参
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string RequestParameter { get; set; }

        /// <summary>
        /// Desc:请求响应结果
        /// Default:
        /// Nullable:True
        /// </summary>
        public string ResponseResult { get; set; }

        /// <summary>
        /// Desc:操作标志code
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ResponseCode { get; set; }

        /// <summary>
        /// Desc:响应时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Duration { get; set; }

        /// <summary>
        /// Desc:日志创建时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// Desc:操作者Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? UserId { get; set; }

        /// <summary>
        /// Desc:操作者IP
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string UserIP { get; set; }

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // TODO: 释放托管状态(托管对象)
                }

                // TODO: 释放未托管的资源(未托管的对象)并重写终结器
                // TODO: 将大型字段设置为 null
                disposedValue = true;
            }
        }

        // // TODO: 仅当“Dispose(bool disposing)”拥有用于释放未托管资源的代码时才替代终结器
        // ~sys_loginfo()
        // {
        //     // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
        //     Dispose(disposing: false);
        // }

        public void Dispose()
        {
            // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
            Dispose(disposing: true);
            GC.SuppressFinalize(this);
        }
    }
}